import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;


public class FileModel {
	static void save(String filename, String content) throws IOException {
		PrintWriter writer = new PrintWriter(new FileOutputStream(filename));
		writer.print(content);
		writer.close();
	}
	static String load(String filename) throws IOException {
		String content = "";
		BufferedReader reader = new BufferedReader(new FileReader(filename));
		String line = reader.readLine();
		while(line != null) {
			content += line + "\n";
			line = reader.readLine();
		}
		return content;
	}
}
